from rest_framework import serializers

from apps.common.account.models import AccountRoles


class AccountRolesSerializer(serializers.ModelSerializer):
    account_id = serializers.IntegerField()
    account = serializers.StringRelatedField(read_only=True)
    role_id = serializers.IntegerField()
    role = serializers.StringRelatedField(read_only=True)
    class Meta:
        model = AccountRoles
        fields = '__all__'
